//
//  MainConversationingCell.swift
//  BusinessIOS
//
//  Created by Rain on 2018/11/20.
//  Copyright © 2018 XingJian Li. All rights reserved.
//

import UIKit

class MainConversationingCell: UITableViewCell {

    var timeLabel:UILabel!
    
    var nameLabel:UILabel!
    
    
    required init?(coder aDecoder: NSCoder) {
        
        super.init(coder: aDecoder)
        
    }
    
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.lauoutUI()
        
    }

    
    func ConversationingWithModel(model: ConversationingModel) {
        
    }
    func lauoutUI(){
        
        self.timeLabel = UILabel()
        
        self.timeLabel.text = "201800108"
        self.timeLabel.textAlignment = .center
        
        self.addSubview(self.timeLabel!)
        
        
        self.nameLabel = UILabel()
        
        self.nameLabel.text = "同江市丰顺农业发展有限公司"
        self.nameLabel.textAlignment = .center
        
        self.addSubview(self.nameLabel!)
        
        
        
        
    }
    
    override func layoutSubviews() {
        
        super.layoutSubviews()
        
        
        
        self.timeLabel.frame = CGRect(x: 10, y: 5, width: 100, height: 30)
        
        self.nameLabel.frame = CGRect(x: 110, y: 5, width: self.frame.size.width-110-10, height: 30)
        
        
        
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
}

